<?php
/**
 * @Copyright Copyright (C) 2010-2012
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 + Created by:          Webit Solution
 * Company:		Webit Solution
 + Contact:		www.webits.asia, developer@webits.asia
 * Created on:	May 21, 2012
 ^
 + Project: 		WRecruit
 * File Name:	views/candidates/tmpl/mycv.php
 ^ 
 * Description: template view my cv
 ^ 
 * History:		NONE
 ^ 
 */
 
 defined('_JEXEC') or die('Restricted access');
   global $mainframe;
  $document =& JFactory::getDocument();

  /*$document->addScript( 'components/com_wrecruit/js/jquery-1.7.2.min.js' );
  $document->addScript( 'components/com_wrecruit/js/jquery-ui.min.js' );
  $document->addScript( 'components/com_wrecruit/js/jquery.uniform.js' );
  $document->addScript( 'components/com_wrecruit/js/scripts.js' );*/
  $document->addScript( 'components/com_wrecruit/js/popup.js' );
  $document->addStyleSheet('components/com_wrecruit/css/popup.css');
  $document->addStyleSheet('components/com_wrecruit/css/chosen/chosen.css');
  $candidate = $this->getModel('wrecruit', 'WRecruitModel');
  $user	=& JFactory::getUser();
  if(isset($user->id) && $user->id == 0 || $user->id == ''){
	   $app =& JFactory::getApplication(); 
	   $app->enqueueMessage( JText::_( 'Please <a href="index.php?option=com_users&view=login">Login</a>' ), 'Login access' );
	  return;
  }else{
  	$candidateObj = $candidate->getAllCandidatesInfor($user->id);
	if( !$candidateObj ){
		$app =& JFactory::getApplication(); 
       //add a message to the message queue
        $app->enqueueMessage( JText::_( 'Please <a href="index.php?option=com_users&view=login">Login</a>' ), 'Login access' );

		return;
	}
	
  }
  $com_base = "components/com_wrecruit/";
  if(JRequest::getVar('newcv_popup_required')!=""){
    $scriptDec = "
	jQuery(function(){
		jQuery('#post-cv-leading-page').trigger(\"click\");	
	});
    
  ";
  $document->addScriptDeclaration ($scriptDec);
 }
  
?>


				<div class="box-list-job">
					<div class="job-seeker-panel">
						<?php include('components/com_wrecruit/views/candidates/tmpl/menuLeft.php');?>
					</div>
					<div class="job-seeker-right">
						<div class="head-title">
						<h2>Account upgrade</h2>
                      
               			
                        <div class="job-listing" style="float:left;">
                    	<div id="upgrade-account">                  
                           	<img alt="" src="http://localhost/ga_svn//wrecruitdata/photo/candidate_2475fd7a688684f271910811165f74f1_1.jpg" width="150" height="150"/>
                        </div>
						<div class="upgrade-account-des">
                        	<h3 style="text-align:center;">Recruitment made easy & fast!</h3>
                            <p>Get more benefit than just browsing your job with our premium account. Find the features of this account below.</p>
                        
						</div>
                        <div class="upgrade-account-wrap">
                        	<div id="upgrade-left">
                            	<p class="p-first">With our premium account, you will get benefit from the following features:</p>
                               <p>- Match jobs to your special fields of interest and get alerted to your mail box</p>
                               <hr style="height:0px; border: 1px solid #fff; margin-left: -10px;"/>
                               <p>- Top up your CV to be more visible to a lot of companies in our website</p>
                             
                            </div>
                            <div id="upgrade-right">                        
                        		<p>Our pricing:</p>
                                <ul>
                                	<li><input type="radio"  name="ch1" value=""/>Annual: <strong>US$ 25.99</strong>/month</li>
                                    <li><input type="radio"  name="ch1" value=""/>Monthly: <strong>US$ 20.99</strong>/month</li>
                                </ul>
                                <div class="btn-action" style="text-align: left; margin: 0px 0px 20px; width: 147px;">
                                    <div class="wrapp-btn">
                                        <span class="btn-left"><span class="btn-right"><input type="submit" name="update_account" value="Upgrade now!" class="btn" id="upgrade_account" /> &nbsp;</span></span>
                                   </div>
                                 </div>
                                
                                <p>By clicking Upgrade now, the upgrade request will be sent to us and you will get an invoice for this purchase through your email</p>
                                
                            </div>
                            
                            <p style="margin: 10px 0px 0px 0px; float:left; width:100%;"><a href="<?php echo JURI::base()."index.php?option=com_wrecruit&c=wrecruit&view=candidates&layout=contentmethodpayment&Itemid=".JRequest::getVar('Itemid');?>" style="text-decoration:underline;">Payment Methods:</a></p>
                        
                        </div>
                        </div>
                        </form>
						</div>
					</div>
				</div>
				
				<!--<div class="box-banner-bottom">					
					<img src="<?php echo $com_base;?>images/banner-avertise-bottom.jpg" alt="" title="" width="745" height="122" />
				</div>-->